package com.fh.controller.wechatapp;

import com.fh.controller.base.BaseController;
import com.fh.service.wechat.WeChatAccService;
import com.fh.util.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by Administrator on 2017/8/21.
 */
@Controller @RequestMapping(value = "/wechat/acc/")
public class WeChatAccController extends BaseController {

    @Autowired
    WeChatAccService weChatAccService;

    @RequestMapping(value = "getSessionKey")
    @ResponseBody
    public Map getSessionKey(){
        PageData pd = this.getPageData();
        return weChatAccService.getSessionKey(pd);
    }

}
